import request from '@/utils/request'

// 查询用户管理列表
export function listUser(query) {
  return request({
    url: '/boot/chatUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户管理详细
// 修改用户管理
export function updateUser(data) {
  return request({
    url: '/boot/chatUser/edit',
    method: 'put',
    data: data
  })
}

//按钮控制
export function editSwitch(data) {
  return request({
    url: '/boot/chatUser/editSwitch',
    method: 'put',
    data: data
  })
}

// 用户上分
export function upPoint(data) {
  return request({
    url: '/boot/walletRechargeCash/createSysRecharge',
    method: 'post',
    data: data
  })
}
// 用户下分
export function downPoint(data) {
  return request({
    url: '/boot/walletRechargeCash/createSysCash',
    method: 'post',
    data: data
  })
}
// 批量注册
export function multiRegister(data) {
  return request({
    url: '/boot/chatUser/createUser',
    method: 'post',
    data: data
  })
}


export function getSwitch(data) {
  return request({
    url: `/boot/walletTransfer/getSwitch`,
    method: 'get',
    data: data,
  })
}


export function setTransfer(data) {
  return request({
    url: `/boot/walletTransfer/switchTransferStart/` + data,
    method: 'get',
  })
}
